package kevin.framework.basic.domain;

import java.io.Serializable;
import java.util.Date;
import kevin.framework.basic.common.annotation.NewOldCompare;
import kevin.framework.basic.common.annotation.Require;
import kevin.framework.basic.common.annotation.Uniquely;

/**
*Generate by Kevin's CodeBuilder
**/
public class User  extends BaseDomain{

		private static final long serialVersionUID = 1L;

		/**
		 *
		 */
		private String id;

		/**
		 *机构ID
		 */
		@Require(langKey="user_require_orgId")
		private String orgId;

		/**
		 *账户
		 */
		@Require(langKey="user_require_name")
		@Uniquely(langKey="user_uniquely",extField="")
		@NewOldCompare
		private String userAccount;

		/**
		 *密码
		 */
		private String userPwd;

		/**
		 *用户名
		 */
		@Require(langKey="user_require_userName")
		private String userName;

		/**
		 *登录时间
		 */
		private Date lastLoginTime;

		/**
		 *登录次数
		 */
		private Integer loginCount;

		/**
		 *状态
		 */
		private Integer userStatus;

		/**
		 *创建用户ID
		 */
		private String createUserId;

		/**
		 *创建时间
		 */
		private Date createTime;

		/**
		 *登录IP
		 */
		private String loginIp;

		/**
		 *
		 */
		public String getId() {
			return id;
		}

		/**
		 *
		 */
		public void setId(String id) {
			this.id = id;
		}

		/**
		 *机构ID
		 */
		public String getOrgId() {
			return orgId;
		}

		/**
		 *机构ID
		 */
		public void setOrgId(String orgId) {
			this.orgId = orgId;
		}

		/**
		 *账户
		 */
		public String getUserAccount() {
			return userAccount;
		}

		/**
		 *账户
		 */
		public void setUserAccount(String userAccount) {
			this.userAccount = userAccount;
		}

		/**
		 *密码
		 */
		public String getUserPwd() {
			return userPwd;
		}

		/**
		 *密码
		 */
		public void setUserPwd(String userPwd) {
			this.userPwd = userPwd;
		}

		/**
		 *用户名
		 */
		public String getUserName() {
			return userName;
		}

		/**
		 *用户名
		 */
		public void setUserName(String userName) {
			this.userName = userName;
		}

		/**
		 *登录时间
		 */
		public Date getLastLoginTime() {
			return lastLoginTime;
		}

		/**
		 *登录时间
		 */
		public void setLastLoginTime(Date lastLoginTime) {
			this.lastLoginTime = lastLoginTime;
		}

		/**
		 *登录次数
		 */
		public Integer getLoginCount() {
			return loginCount;
		}

		/**
		 *登录次数
		 */
		public void setLoginCount(Integer loginCount) {
			this.loginCount = loginCount;
		}

		/**
		 *状态
		 */
		public Integer getUserStatus() {
			return userStatus;
		}

		/**
		 *状态
		 */
		public void setUserStatus(Integer userStatus) {
			this.userStatus = userStatus;
		}

		/**
		 *创建用户ID
		 */
		public String getCreateUserId() {
			return createUserId;
		}

		/**
		 *创建用户ID
		 */
		public void setCreateUserId(String createUserId) {
			this.createUserId = createUserId;
		}

		/**
		 *创建时间
		 */
		public Date getCreateTime() {
			return createTime;
		}

		/**
		 *创建时间
		 */
		public void setCreateTime(Date createTime) {
			this.createTime = createTime;
		}

		/**
		 *登录IP
		 */
		public String getLoginIp() {
			return loginIp;
		}

		/**
		 *登录IP
		 */
		public void setLoginIp(String loginIp) {
			this.loginIp = loginIp;
		}

		@Override
		public String toString(){
			return "id=[" +getId() +"] orgId=[" +getOrgId() +"] userAccount=[" +getUserAccount() +"] userPwd=[" +getUserPwd() +"] userName=[" +getUserName() +"] lastLoginTime=[" +getLastLoginTime() +"] loginCount=[" +getLoginCount() +"] userStatus=[" +getUserStatus() +"] createUserId=[" +getCreateUserId() +"] createTime=[" +getCreateTime() +"] loginIp=[" +getLoginIp() +"]";
		}
}
